CustomerOmsStoreQuery
查询用户标记
请求地址
POST
http://OmsAddress/app/newoms.php/webservice/customer-oms-store/query?cmd=10019&ip-type=webservicerest&access-token=AccessTokenVal
POST请求参数说明
参数 | 格式 | 是否必填 | 说明 |
---|---|---|---|
app_id | 整型 | 是 | 业务ID |
key_binary | string | 是 |
Data参数
使用json格式表示记录相关信息,示例如下:
{
"app_id": 2,
"key_binary": "some string"
}
返回语法
返回参数说明
参数 | 格式 | 说明 |
---|---|---|
code | 整型 | 0表示成功,非0表示失败 |
total | 整型 | 查询总数量 |
markdata | 字符串 | json串 |
msg | 字符串 | 信息 |
请求示例
通过 curl 方法发起请求
命令中的参数请参考本页中的“POST请求参数说明”,access-token的获取方法详见:获取access-token
curl -H "Content-type: application/json" -X "POST" -d '{
"app_id": 2,
"key_binary": "some string"
}' http://omsaddress/app/newoms.php/webservice/customer-oms-store/query?cmd=10019&ip-type=webservicerest&access-token=<access-token>
返回示例
成功返回示例
http请求的Status=200
{
"code": 0,
"total": 1,
"markdata": [
{
"app_id": 2,
"key_binary": "some string",
"value_binary": "some string",
"version": "some string",
"last_mark_user": "tester",
"last_mark_time": "2019-07-26 12:08"
}
],
"msg": "success"
}
错误返回
http请求的Status!=200
{
"name": "Unauthorized",
"message": "You are requesting with an invalid credential.",
"code": 0,
"status": 401,
"type": "yii\\web UnauthorizedHttpException"
}
{
"source_ip": "ip:10.29.89.51 not in whitelist"
}